from selenium import webdriver
class Basic:
    #初始化驱动选择及地址选择
    _base_url = 'https://pan.rubinchu.com/'
    def __init__(self,driver:webdriver=None):
        driver= None
        if driver is  None:
            self.driver = webdriver.Chrome()
        else:
            self.driver = driver
        if self._base_url != '':
            self.driver.get(self._base_url)
            self.driver.implicitly_wait(5)
            self.driver.maximize_window()
        #后期需要优化url获取通过yaml文件获取

